The IDL_Object class is designed to be inherited by objects that define _overload methods, in order to overload the behavior of one or more of IDL’s standard operators. It is not meant to be instantiated directly.
To overload the behavior of a standard operator for objects of a user-defined object class, you would write an overloaded operator method for the class, and add IDL_Object as a superclass of the class. Object classes that do not inherit from the IDL_Object class do not use operator overload methods even if the methods are defined.
Object classes that inherit from the IDL_Object class can also overload several routines that provide information about variables: HELP, PRINT, and SIZE.
Note: The INIT and CLEANUP methods for a subclass do not need to call this superclass' INIT and CLEANUP methods.
None
This class serves as an interface class for other classes. There is never a need to instantiate an IDL_Object class directly.
Objects of this class have no properties of their own.
This class defines methods for each standard IDL operator that can be overloaded.
This class has the following methods:
A user-defined class that overloads one or more operators must include the INHERITS token in the class structure definition:
PRO myObjectClass__define
structure = { myObjectClass, $
PROPERTY1: 0L, $
PROPERTY2: '', $
INHERITS IDL_Object $
}
END
8.0 |
Introduced |